import {ElTag} from 'element-plus';

export default(
    {
    row,
    prop
    }
)=>{
    const tagsArray = row[prop];
    let tags = [];
    tagsArray.map((tag)=>{
        tags = [
            ...tags,
            {
                widget: ElTag,
                type:'primary',
                items:tag,
                style: {
                    'margin': '5px 0',
                   
                },
            }
        ]
    });
    return tags;
}